﻿@model IEnumerable<DistributeTransaction.Models.CardInfo>
@{
    ViewBag.Title = "Card Information";
}
<h2>
    Card Information</h2>
<p>
    @Html.ActionLink("Save a New Card", "Create")
</p>
<table>
    <tr>
        <th>
        </th>
        <th>
            Holder Name
        </th>
        <th>
            Card Number
        </th>
        <th>
            Card Type
        </th>
        <th>
            Expire Date
        </th>
        <th>
            Valid Code
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.AccountId }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.AccountId })
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.HoldName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CardNumber)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CardType)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.ExpireDate)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.ValidCode)
            </td>
        </tr>
    }
</table>
